package basics.day17.Math;

public class RoundDemo {
    public static void main(String[] args) {
        double d1 = 1.49999999;
        double d2 = 1.500000001;
        System.out.println(d1 + "的四舍五入整数为：" + Math.round(d1));
        System.out.println(d2 + "的四舍五入整数为：" + Math.round(d2));
        System.out.println(Math.round(d1));
        long i = Math.round(d1);
    }
}
